},
_cancelDrag: function(eventTime) {
- if (this._updateHoverId) {
- GLib.source_remove(this._updateHoverId);
- this._updateHoverId = 0;
- }
-
this.emit('drag-cancelled', eventTime);
this._dragInProgress = false;
let [snapBackX, snapBackY, snapBackScale] = this._getRestoreLocation();
this._lastEnterActor = null;
}
+ if (this._updateHoverId) {
+ GLib.source_remove(this._updateHoverId);
+ this._updateHoverId = 0;
+ }
+
this._dragActor = undefined;
currentDraggable = null;
}